package com.it.park.controller;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.it.park.client.kafka.KafkaProducerService;

@Controller
@RequestMapping("/test")
public class TestController {
	@Resource
	private KafkaProducerService kafkaProducerService;
	
	@RequestMapping("sendMessage")
	public void sendMessage(){
		List<String> messages = new ArrayList<>();
		messages.add("I Love Chain!");
		kafkaProducerService.sendMessage(messages);
	}

}
